#pragma once

class CGridLine
{
public:
	CGridLine(void);
	~CGridLine(void);
	CGridLine(int p_width);

	inline	int		getWidth(int p_width);

	inline	void	setWidth(int p_width);

	inline	void	setColor(DWORD p_color);
	inline	DWORD	getColor();

	inline	void	setStyle(DWORD p_style);
	inline	DWORD	getStyle();

	inline	void	setShowTop(bool p_showTop);
	inline	bool	getIsTop();

	void draw(HWND p_hWnd, HDC p_dc );

private:
	HWND	m_hWnd;
	DWORD	m_style;
	DWORD	m_color;
	int		m_width;
	bool	m_showTop;
};

inline int CGridLine::getWidth(int p_width)
{
	return m_width;
}

inline void CGridLine::setWidth(int p_width)
{
	m_width = p_width;
}

void CGridLine::setColor( DWORD p_color )
{
	m_color = p_color;
}

DWORD CGridLine::getColor()
{
	return m_color;
}

void CGridLine::setStyle( DWORD p_style )
{
	m_style = p_style;
}

DWORD CGridLine::getStyle()
{
	return m_style;
}

void CGridLine::setShowTop( bool p_showTop )
{
	m_showTop = p_showTop;
}

bool CGridLine::getIsTop()
{
	return m_showTop;
}